class Score_pannel{
    score:HTMLElement
    level:HTMLElement
    
    constructor() {
        this.score = document.getElementById('score')!
        this.level = document.getElementById('level')!
    }

    addScore(){
        let score_num = Number(this.score.innerHTML)
        
        this.score.innerHTML = ++score_num + ''
        if(score_num % 3 == 0){
            this.levelUp()
        }
    }

    levelUp(){
        this.level.innerHTML = Number(this.level.innerHTML)+1 + ''
    }
}

export default Score_pannel